const headerTemplate = `<div v-show="aa" style="position:fixed;top:10%;left:30%"> <el-table
      :data="newlists"
      style="width: 100%">
      <el-table-column
        prop="date"
        label="日期"
        width="180">
      </el-table-column>
      <el-table-column
        prop="name"
        label="姓名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="address"
        label="地址">
      </el-table-column>
    </el-table><div @click="fun()">asdasd</div>
	<button @click="closefun">close</button></div>`
Vue.component('my-header', {
    template: headerTemplate,
    props:{
        newlists:{
            type:Array
        }
    },
    data() {
        return {
            aa:true
        }
    },
    methods: {
        closefun(){
            console.log(this.$parent)
            this.$emit('hello',"child2parent?")
        }
    }
    // ...
});
